import axios from '@/libs/api.request'

export const changePassword = (data) => {
  return axios.request({
    url: 'ums/personal/changePassword',
    method: 'post',
    data: data
  })
}

export const getInfo = (data) => {
  return axios.request({
    url: 'ums/personal/getInfo',
    method: 'get',
    data: data
  })
}

export const updateInfo = (data) => {
  return axios.request({
    url: 'ums/personal/updateInfo',
    method: 'post',
    data: data
  })
}
export const updateAvatar = (data) => {
  return axios.request({
    url: 'ums/personal/updateAvatar',
    method: 'post',
    data: data
  })
}
